-- GENERATED SPELL FOR [High Inquisitor Valroth] --


function spell0_29001(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(38210,pUnit)
pUnit:RegisterEvent('Sorts_29001', 15000, 1)
end

function spell1_29001(pUnit, Event) --@The Inquisitor\'s Penance,n/a--
pUnit:FullCastSpellOnTarget(52922,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29001', 657, 1)
end

function spell2_29001(pUnit, Event) --@Valroth\'s Smite,n/a--
pUnit:FullCastSpellOnTarget(52926,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29001', 1500, 1)
end

function Sorts_29001(pUnit, Event)
local choix_sorts_29001 = math.random(0, 2)
if choix_sorts_29001 == 0 then
pUnit:RegisterEvent('spell0_29001', 1, 1)
end
if choix_sorts_29001 == 1 then
pUnit:RegisterEvent('spell1_29001', 1, 1)
end
if choix_sorts_29001 == 2 then
pUnit:RegisterEvent('spell2_29001', 1, 1)
end
end

function mob29001_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29001', math.random(1500, 3000), 1)
end

function mob29001_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29001_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29001_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29001, 1, 'mob29001_Action')
RegisterUnitEvent(29001, 2, 'mob29001_Leave')
RegisterUnitEvent(29001, 3, 'mob29001_Kill')
RegisterUnitEvent(29001, 4, 'mob29001_Die')
